<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#375EAB">

  <title>ini_reader - The Go Programming Language</title>

<link type="text/css" rel="stylesheet" href="/lib/godoc/style.css">

<link rel="stylesheet" href="/lib/godoc/jquery.treeview.css">
<script type="text/javascript">window.initFuncs = [];</script>
</head>
<body>

<div id='lowframe' style="position: fixed; bottom: 0; left: 0; height: 0; width: 100%; border-top: thin solid grey; background-color: white; overflow: auto;">
...
</div><!-- #lowframe -->

<div id="topbar" class="wide"><div class="container">
<div class="top-heading" id="heading-wide"><a href="/">The Go Programming Language</a></div>
<div class="top-heading" id="heading-narrow"><a href="/">Go</a></div>
<a href="#" id="menu-button"><span id="menu-button-arrow">&#9661;</span></a>
<form method="GET" action="/search">
<div id="menu">
<a href="/doc/">Documents</a>
<a href="/pkg/">Packages</a>
<a href="/project/">The Project</a>
<a href="/help/">Help</a>

<a href="/blog/">Blog</a>


<span class="search-box"><input type="search" id="search" name="q" placeholder="Search" aria-label="Search" required><button type="submit"><span><!-- magnifying glass: --><svg width="24" height="24" viewBox="0 0 24 24"><title>submit search</title><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/><path d="M0 0h24v24H0z" fill="none"/></svg></span></button></span>
</div>
</form>

</div></div>



<div id="page" class="wide">
<div class="container">


  <h1>
    Package ini_reader
    <span class="text-muted"></span>
  </h1>







<div id="nav"></div>


<!--
	Copyright 2009 The Go Authors. All rights reserved.
	Use of this source code is governed by a BSD-style
	license that can be found in the LICENSE file.
-->
<!--
	Note: Static (i.e., not template-generated) href and id
	attributes start with "pkg-" to make it impossible for
	them to conflict with generated attributes (some of which
	correspond to Go identifiers).
-->

	<script type='text/javascript'>
	document.ANALYSIS_DATA = null;
	document.CALLGRAPH = null;
	</script>

	
		
		<div id="short-nav">
			<dl>
			<dd><code>import "ini_reader"</code></dd>
			</dl>
			<dl>
			<dd><a href="#pkg-overview" class="overviewLink">Overview</a></dd>
			<dd><a href="#pkg-index" class="indexLink">Index</a></dd>
			
			
			</dl>
		</div>
		<!-- The package's Name is printed as title by the top-level template -->
		<div id="pkg-overview" class="toggleVisible">
			<div class="collapsed">
				<h2 class="toggleButton" title="Click to show Overview section">Overview ▹</h2>
			</div>
			<div class="expanded">
				<h2 class="toggleButton" title="Click to hide Overview section">Overview ▾</h2>
				
				
			</div>
		</div>

		<div id="pkg-index" class="toggleVisible">
		<div class="collapsed">
			<h2 class="toggleButton" title="Click to show Index section">Index ▹</h2>
		</div>
		<div class="expanded">
			<h2 class="toggleButton" title="Click to hide Index section">Index ▾</h2>

		<!-- Table of contents for API; must be named manual-nav to turn off auto nav. -->
			<div id="manual-nav">
			<dl>
			
			
				<dd><a href="#pkg-variables">Variables</a></dd>
			
			
				
				<dd><a href="#Load">func Load(fileName string) config</a></dd>
			
				
				<dd><a href="#Watch">func Watch(ls Listener, filePath string) (config, error)</a></dd>
			
			
				
				<dd><a href="#FileListener">type FileListener</a></dd>
				
				
					
					<dd>&nbsp; &nbsp; <a href="#FileListener.Listen">func (fl FileListener) Listen(filePath string) error</a></dd>
				
			
				
				<dd><a href="#Listener">type Listener</a></dd>
				
				
			
			
			</dl>
			</div><!-- #manual-nav -->

		

		
			<h3>Package files</h3>
			<p>
			<span style="font-size:90%">
			
				<a href="/src/ini_reader/error.go">error.go</a>
			
				<a href="/src/ini_reader/listener.go">listener.go</a>
			
				<a href="/src/ini_reader/load.go">load.go</a>
			
				<a href="/src/ini_reader/parse.go">parse.go</a>
			
				<a href="/src/ini_reader/struct.go">struct.go</a>
			
				<a href="/src/ini_reader/watch.go">watch.go</a>
			
			</span>
			</p>
		
		</div><!-- .expanded -->
		</div><!-- #pkg-index -->

		<div id="pkg-callgraph" class="toggle" style="display: none">
		<div class="collapsed">
			<h2 class="toggleButton" title="Click to show Internal Call Graph section">Internal call graph ▹</h2>
		</div> <!-- .expanded -->
		<div class="expanded">
			<h2 class="toggleButton" title="Click to hide Internal Call Graph section">Internal call graph ▾</h2>
			<p>
			  In the call graph viewer below, each node
			  is a function belonging to this package
			  and its children are the functions it
			  calls&mdash;perhaps dynamically.
			</p>
			<p>
			  The root nodes are the entry points of the
			  package: functions that may be called from
			  outside the package.
			  There may be non-exported or anonymous
			  functions among them if they are called
			  dynamically from another package.
			</p>
			<p>
			  Click a node to visit that function's source code.
			  From there you can visit its callers by
			  clicking its declaring <code>func</code>
			  token.
			</p>
			<p>
			  Functions may be omitted if they were
			  determined to be unreachable in the
			  particular programs or tests that were
			  analyzed.
			</p>
			<!-- Zero means show all package entry points. -->
			<ul style="margin-left: 0.5in" id="callgraph-0" class="treeview"></ul>
		</div>
		</div> <!-- #pkg-callgraph -->

		
		
			<h2 id="pkg-variables">Variables</h2>
			
				
				<pre>var (
    <span class="comment">// ErrOpenFile : fail to open the file</span>
    <span id="ErrOpenFile">ErrOpenFile</span> = <a href="/pkg/errors/">errors</a>.<a href="/pkg/errors/#New">New</a>(&#34;Fail to open the file&#34;)

    <span class="comment">// ErrGetStat : fail to get the state of file</span>
    <span id="ErrGetStat">ErrGetStat</span> = <a href="/pkg/errors/">errors</a>.<a href="/pkg/errors/#New">New</a>(&#34;Fail to get the state of file&#34;)

    <span class="comment">// ErrorReadFile : Wrong in reading the file</span>
    <span id="ErrorReadFile">ErrorReadFile</span> = <a href="/pkg/errors/">errors</a>.<a href="/pkg/errors/#New">New</a>(&#34;Fail to read the file&#34;)
)</pre>
			
		
		
			
			
			<h2 id="Load">func <a href="/src/ini_reader/load.go?s=94:127#L1">Load</a>
				<a class="permalink" href="#Load">&#xb6;</a>
			</h2>
			<pre>func Load(fileName <a href="/pkg/builtin/#string">string</a>) config</pre>
			<p>
Load : Get configure struct from .init file
</p>

			
			

		
			
			
			<h2 id="Watch">func <a href="/src/ini_reader/watch.go?s=73:129#L1">Watch</a>
				<a class="permalink" href="#Watch">&#xb6;</a>
			</h2>
			<pre>func Watch(ls <a href="#Listener">Listener</a>, filePath <a href="/pkg/builtin/#string">string</a>) (config, <a href="/pkg/builtin/#error">error</a>)</pre>
			<p>
Watch func watches the changes of the target file
</p>

			
			

		
		
			
			
			<h2 id="FileListener">type <a href="/src/ini_reader/listener.go?s=187:215#L4">FileListener</a>
				<a class="permalink" href="#FileListener">&#xb6;</a>
			</h2>
			<p>
FileListener is the interface of FileListener
</p>

			<pre>type FileListener struct {
}</pre>

			

			

			
			
			

			

			
				
				<h3 id="FileListener.Listen">func (FileListener) <a href="/src/ini_reader/listener.go?s=255:307#L8">Listen</a>
					<a class="permalink" href="#FileListener.Listen">&#xb6;</a>
				</h3>
				<pre>func (fl <a href="#FileListener">FileListener</a>) Listen(filePath <a href="/pkg/builtin/#string">string</a>) <a href="/pkg/builtin/#error">error</a></pre>
				<p>
Listen implemented by FileListener
</p>

				
				
				
			
		
			
			
			<h2 id="Listener">type <a href="/src/ini_reader/listener.go?s=87:136#L1">Listener</a>
				<a class="permalink" href="#Listener">&#xb6;</a>
			</h2>
			<p>
Listener is the interface of listener
</p>

			<pre>type Listener interface {
    Listen(<a href="/pkg/builtin/#string">string</a>) <a href="/pkg/builtin/#error">error</a>
}</pre>

			

			

			
			
			

			

			
		
	

	







<div id="footer">
Build version go1.10.<br>
Except as <a href="https://developers.google.com/site-policies#restrictions">noted</a>,
the content of this page is licensed under the
Creative Commons Attribution 3.0 License,
and code is licensed under a <a href="/LICENSE">BSD license</a>.<br>
<a href="/doc/tos.html">Terms of Service</a> |
<a href="http://www.google.com/intl/en/policies/privacy/">Privacy Policy</a>
</div>

</div><!-- .container -->
</div><!-- #page -->

<!-- TODO(adonovan): load these from <head> using "defer" attribute? -->
<script type="text/javascript" src="/lib/godoc/jquery.js"></script>
<script type="text/javascript" src="/lib/godoc/jquery.treeview.js"></script>
<script type="text/javascript" src="/lib/godoc/jquery.treeview.edit.js"></script>


<script>var goVersion = "go1.10";</script>
<script type="text/javascript" src="/lib/godoc/godocs.js"></script>

</body>
</html>

